package com.tanhua.test;

import com.easemob.im.server.EMProperties;
import com.easemob.im.server.EMService;
import com.tanhua.autoconfig.TanhuaAutoConfiguration;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * @Description: test
 * @Create by: JJ菜菜
 * @Date: 2021/12/4 19:45
 */

@SpringBootTest(classes = TanhuaAutoConfiguration.class)
@RunWith(SpringRunner.class)
public class HuanXin {


    @Test
    public void test01(){

        EMProperties properties = EMProperties.builder()
                .setAppkey("1181211204108263#tanhua")
                .setClientId("YXA6Kmrfdk-QQ1aEu84vOdkd3g")
                .setClientSecret("YXA63TMVvPi5DBpi0nYJgzR9yYjzfVw")
                .build();

        EMService emService = new EMService(properties);

        emService.user().create("hx106", "123456").block();


    }


}
